package com.dao;

import com.entity.Condition;
import com.entity.Comment;
import com.page.PageInfo;

import java.text.ParseException;
import java.util.List;

public interface CommentDao {

    public List<Comment> getCommentsByCmpid(Integer cmpid);

    public List<Comment> getCommentsByPage(PageInfo pageInfo);



    public Comment getCommentByCmid(Integer cmid)throws Exception;
    public Integer add(Comment comment)throws Exception;
    /**
     *  根据主键修改信息
     * @param comment
     */
    public Integer update(Comment comment)throws Exception;

}
